package com.bachelor.community.service.intf;

import com.bachelor.community.model.dto.UserDTO;
import com.bachelor.community.model.entity.User;
import com.bachelor.community.model.vo.UserVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface UserService extends IService<User> {
    UserVO login(UserDTO userDTO);

    User register(UserDTO userDTO);

    UserVO getUserVOById(Integer userId);

    UserVO partialUpdateUser(Integer userId, UserDTO userDTO);

    IPage<UserVO> listUsersOrderByLikeCount(Integer currentPage, Integer pageSize);

    List<String> listClassNumbers();
}
